//
//  HQQiOSCache+TMCache.h
//  HQQiOSCacheExample
//
//  Created by 黄强强 on 16/7/8.
//  Copyright © 2016年 黄强强. All rights reserved.
//

#import "HQQiOSCache.h"
#import <TMCache.h>

@interface HQQiOSCache (TMCache)

+ (NSInteger)TMCacheSize;

+ (void)objectForKey:(NSString *)key block:(TMCacheObjectBlock)block;

+ (void)removeObjectForKey:(NSString *)key block:(TMCacheObjectBlock)block;

+ (void)trimToDate:(NSDate *)date block:(TMCacheBlock)block;

+ (void)removeAllObjects:(TMCacheBlock)block;

+ (id)objectForKey:(NSString *)key;

+ (void)removeObjectForKey:(NSString *)key;

+ (void)trimToDate:(NSDate *)date;

+ (void)removeAllObjects;

+ (void)setObject:(id <NSCoding>)object forKey:(NSString *)key;

+ (void)setObject:(id <NSCoding>)object forKey:(NSString *)key block:(TMCacheObjectBlock)block;

@end
